package com.ihc.app.dao;

import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.userdetails.UsernameNotFoundException;

import com.ihc.app.model.Main;
import com.ihc.app.model.User;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User Data Access Object (GenericDao) interface.
 *
 * @author <a href="mailto:anewbus78@yahoo.com">Paul Lungu</a>
 */
public interface MainDao extends GenericDao<Main, Long> {

    /**
     * Gets a list of users ordered by the uppercase version of their username.
     *
     * @return List populated list of users
     */
    List<Main> getMain();

    /**
     * Saves a user's information.
     * @param user the object to be saved
     * @return the persisted User object
     */
    Main saveMain(Main main);
    
}
